import request from '@/utils/request'
var group_name = 'jobs'

export default {
    getList() {
        return request({
            url: `/${group_name}/getList`,
            method: 'get'
        })
    },
    addJob(data) {
        return request({
            url: `/${group_name}/addJob`,
            method: 'post',
            data: data
        })
    },
    updateJob(data) {
        return request({
            url: `/${group_name}/updateJob`,
            method: 'post',
            data: data
        })
    },
    enable(id) {
        return request({
            url: `/${group_name}/enable/${id}`,
            method: 'get'
        })
    },
    delete(id) {
        return request({
            url: `/${group_name}/delete/${id}`,
            method: 'get'
        })
    },
}